/**
 * jims
 */
package com.jims.master.modules.finance.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.finance.entity.OutpAcctMaster;
import com.jims.master.modules.finance.entity.OutpPaymentsMone;
import com.jims.master.modules.sys.entity.User;

import java.util.List;

/**
 * DAO接口
 * @author chentao
 * @version 2017-03-14
 */
@MyBatisDao
public interface OutpAcctMasterDao extends CrudDao<OutpAcctMaster> {
    /**
     * 获取最大的acctNo
     * @return String
     * @author 赵宁
     */
    public String getMaxAcctNo();

    /**
     * 获取当前登录人的最大结账时间
     * @param user
     * @return getMaxAcctDate
     * @author 赵宁
     */
    public String getMaxAcctDate(User user);

    /**
     * 查询结账信息
     * @param outpAcctMaster
     * @return OutpAcctMaster
     * @author 赵宁
     */
    public OutpAcctMaster getAcctInfo(OutpAcctMaster outpAcctMaster);

    /**
     * 查询结账详细信息
     * @param outpAcctMaster
     * @return OutpAcctMaster
     * @author 赵宁
     */
    public OutpAcctMaster getAcctMasterInfo(OutpAcctMaster outpAcctMaster);

    /**
     * 合并结账查询信息
     * @param outpAcctMaster
     * @return OutpAcctMaster
     * @author 赵宁
     */
    public OutpAcctMaster mergeAcctGetInfo(OutpAcctMaster outpAcctMaster);

    /**
     * 合并结账查询结账信息
     * @param outpAcctMaster
     * @return OutpAcctMaster
     * @author 赵宁
     */
    public List<OutpPaymentsMone> mergeAcctGetPayInfo(OutpAcctMaster outpAcctMaster);
}